"use client"
import Content from '@/app/admin/page'
import React, { useEffect, useState } from 'react';
import { Tabs } from 'antd';
import Conversation from './components/Dialogue'
import LeaveWord from './components/LeaveWord'

export default function Home() {
  const items = [
    {
      key: '1',
      label: '实时会话',
      children: <Conversation></Conversation>,
    },
    {
      key: '2',
      label: '客户留言',
      children: <LeaveWord></LeaveWord>,
    },
  ];
  return (<Content>
    <div
      style={{
        padding: 24,
        minHeight: 360,
        background: '#fff',
        borderRadius: 10,
        flex: 1,
        overflow: 'auto'
      }}
    >
    <Tabs defaultActiveKey="1" items={items} />
    </div>
  </Content>
  );
};
